/* __auth__ : KunLin */
package com.cskaoyan.bean.vo.goods;

import lombok.Data;

import java.util.List;

@Data
public class GoodsCatAndBrandVO {


    private Integer errno;
    private DataDTO data;
    private String errmsg;

    public GoodsCatAndBrandVO success() {
        this.setErrno(0);
        this.setErrmsg("成功");
        return this;
    }

    @Data
    public static class DataDTO {
        private List<CategoryListDTO> categoryList;
        private List<BrandListDTO> brandList;

    }

    @Data
    public static class CategoryListDTO {
        private Integer value;
        private String label;
        private List<ChildrenDTO> children;
    }

    @Data
    public static class BrandListDTO {
        private Integer value;
        private String label;
    }

    @Data
    public static class ChildrenDTO {
        private Integer value;
        private String label;
    }
}
